<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>理赔报表</title>
    <%@include file="/static/common/common.jsp" %>
    <script src="/static/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
    <script src="/static/plugins/artDialog/iframeTools.js"></script>
    <script src="/static/js/chart/compensationChart.js"></script>
    <script >
       $(function () {
           //弹出子窗口
           $(".chart").click(function () {
               //序列化表单传递的参数，
               var url = $(this).data("url")+"?" +  $("#searchForm").serialize();
               $.dialog.open(url, {
                   title: "理赔报表",
                   width: "75%",
                   height: "80%",
                   left: "50%",
                   top: "50%",
                   lock: true,
                   resize: false
               });
           });
       })
    </script>
</head>
<body>
<table id="chart_datagrid"></table>
<%--理赔报表主界面的工具类--%>
<div id="chart_toolbar">
    <form id="searchForm">
        <p>
            机构：<input id="organizationId" class="easyui-combobox"
                      data-options="url:'/organization/selectAll.do',valueField:'id',textField:'name'">
            理赔日期：<input id="beginDate" class="easyui-datebox"> ~
            <input id="endDate" class="easyui-datebox">
            分组：
            <select id="groupType" name="groupType" class="easyui-combobox">
                <option value="e.username">业务人员</option>
                <option value=" o.name">保险机构</option>
                <option value="DATE_FORMAT(com.compensationDate,'%Y-%m')">理赔月份</option>
                <option value="DATE_FORMAT(com.compensationDate,'%Y-%m-%d')">理赔日期</option>
            </select>
            <a class="easyui-linkbutton chart" iconCls="iconfont icon-shuju2" plain="true"
               data-url="/chart/compensationChartByBar.do">柱状图</a>
            <a class="easyui-linkbutton chart" iconCls="iconfont icon-shuju1    " plain="true"
               data-url="/chart/compensationChartByPie.do">饼状图</a>
            <a id="query" class="easyui-linkbutton" iconCls="iconfont icon-sousuo" plain="true" onclick="query()">搜索</a>
        </p>
    </form>
</div>


</body>
</html>
